package com.fishery.authority.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 
 * </p>
 *
 * @author hy
 * @since 2021-01-18
 */
@TableName("t_authority_base_role_function")
@ApiModel(value="BaseRoleFunction对象", description="")
public class BaseRoleFunction implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "基地id")
    @TableId(value = "base_id", type = IdType.ID_WORKER_STR)
    private String baseId;

    @ApiModelProperty(value = "基地中身份")
    @TableId(value = "base_identity", type = IdType.ID_WORKER_STR)
    private Integer baseIdentity;

    @ApiModelProperty(value = "权限id")
    @TableId(value = "function_id", type = IdType.ID_WORKER_STR)
    private String functionId;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;

    @ApiModelProperty(value = "逻辑删除,是1 否0")
    @TableField(fill = FieldFill.INSERT)
    private Integer isDeleted;

    @ApiModelProperty(value = "乐观锁")
    @Version
    @TableField(fill = FieldFill.INSERT)
    private Integer version;

    public Integer getBaseIdentity() {
        return baseIdentity;
    }

    public void setBaseIdentity(Integer baseIdentity) {
        this.baseIdentity = baseIdentity;
    }

    public String getFunctionId() {
        return functionId;
    }

    public void setFunctionId(String functionId) {
        this.functionId = functionId;
    }

    @Override
    public String toString() {
        return "BaseRoleFunction{" +
                "baseId='" + baseId + '\'' +
                ", baseIdentity='" + baseIdentity + '\'' +
                ", functionId='" + functionId + '\'' +
                ", gmtCreate=" + gmtCreate +
                ", gmtModified=" + gmtModified +
                ", isDeleted=" + isDeleted +
                ", version=" + version +
                '}';
    }

    public String getBaseId() {
        return baseId;
    }

    public void setBaseId(String baseId) {
        this.baseId = baseId;
    }

    public Date getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public Date getGmtModified() {
        return gmtModified;
    }

    public void setGmtModified(Date gmtModified) {
        this.gmtModified = gmtModified;
    }

    public Integer getDeleted() {
        return isDeleted;
    }

    public void setDeleted(Integer isDeleted) {
        this.isDeleted = isDeleted;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

}
